package com.kingcore.commerce.merchant.controller;

import java.io.Serializable;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.kingcore.commerce.base.controller.CommerceController;

/**
 * Controller&Service:
 * 		add/remove/modify/queryXxx
 * Mapper:
 * 		insert/delete/update/selectOne,selectList,selectPage
 * 
 * @author Zeven
 * 
 */

@Controller
@RequestMapping(value="/merchant")
public class MerchantController extends CommerceController{

	
	@RequestMapping("/list")
	public String list(Model model) {
 
		return "/merchant/list";
	}
	
	@RequestMapping("/add")
	public String add(Model model) {
		return "/merchant/add";
	}
	
	@RequestMapping("/edit/{bookId}")
	public String edit(@PathVariable("bookId") int bookId, Model model) {
 
		
		return "/merchant/edit";
	}

	@Override
	protected String getModuleParent() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected String getModuleName() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String neww(HttpServletResponse response, Model model)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String edit(HttpServletResponse response, Model model,
			Serializable pk) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String list(HttpServletResponse response, Model model, Object t,
			Integer pageNum, Integer numPerPage) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ModelAndView add(HttpServletResponse response, Model model, Object t)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ModelAndView mod(HttpServletResponse response, Model model, Object t)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ModelAndView remove(HttpServletResponse response, Model model,
			Serializable pk) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}
	 
}
